﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001091 RID: 4241
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueWorkbenchGetInfoScRsp : IMessage<RogueWorkbenchGetInfoScRsp>, IMessage, IEquatable<RogueWorkbenchGetInfoScRsp>, IDeepCloneable<RogueWorkbenchGetInfoScRsp>, IBufferMessage
	{
		// Token: 0x1700357F RID: 13695
		// (get) Token: 0x0600BD5B RID: 48475 RVA: 0x001FEAA8 File Offset: 0x001FCCA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueWorkbenchGetInfoScRsp> Parser
		{
			get
			{
				return RogueWorkbenchGetInfoScRsp._parser;
			}
		}

		// Token: 0x17003580 RID: 13696
		// (get) Token: 0x0600BD5C RID: 48476 RVA: 0x001FEAAF File Offset: 0x001FCCAF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueWorkbenchGetInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003581 RID: 13697
		// (get) Token: 0x0600BD5D RID: 48477 RVA: 0x001FEAC1 File Offset: 0x001FCCC1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueWorkbenchGetInfoScRsp.Descriptor;
			}
		}

		// Token: 0x0600BD5E RID: 48478 RVA: 0x001FEAC8 File Offset: 0x001FCCC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueWorkbenchGetInfoScRsp()
		{
		}

		// Token: 0x0600BD5F RID: 48479 RVA: 0x001FEADB File Offset: 0x001FCCDB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueWorkbenchGetInfoScRsp(RogueWorkbenchGetInfoScRsp other) : this()
		{
			this.funcInfoMap_ = other.funcInfoMap_.Clone();
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BD60 RID: 48480 RVA: 0x001FEB11 File Offset: 0x001FCD11
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueWorkbenchGetInfoScRsp Clone()
		{
			return new RogueWorkbenchGetInfoScRsp(this);
		}

		// Token: 0x17003582 RID: 13698
		// (get) Token: 0x0600BD61 RID: 48481 RVA: 0x001FEB19 File Offset: 0x001FCD19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MapField<uint, WorkbenchFuncInfo> FuncInfoMap
		{
			get
			{
				return this.funcInfoMap_;
			}
		}

		// Token: 0x17003583 RID: 13699
		// (get) Token: 0x0600BD62 RID: 48482 RVA: 0x001FEB21 File Offset: 0x001FCD21
		// (set) Token: 0x0600BD63 RID: 48483 RVA: 0x001FEB29 File Offset: 0x001FCD29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600BD64 RID: 48484 RVA: 0x001FEB32 File Offset: 0x001FCD32
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueWorkbenchGetInfoScRsp);
		}

		// Token: 0x0600BD65 RID: 48485 RVA: 0x001FEB40 File Offset: 0x001FCD40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueWorkbenchGetInfoScRsp other)
		{
			return other != null && (other == this || (this.FuncInfoMap.Equals(other.FuncInfoMap) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BD66 RID: 48486 RVA: 0x001FEB90 File Offset: 0x001FCD90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.FuncInfoMap.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BD67 RID: 48487 RVA: 0x001FEBDD File Offset: 0x001FCDDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BD68 RID: 48488 RVA: 0x001FEBE5 File Offset: 0x001FCDE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BD69 RID: 48489 RVA: 0x001FEBF0 File Offset: 0x001FCDF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			this.funcInfoMap_.WriteTo(ref output, RogueWorkbenchGetInfoScRsp._map_funcInfoMap_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BD6A RID: 48490 RVA: 0x001FEC40 File Offset: 0x001FCE40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.funcInfoMap_.CalculateSize(RogueWorkbenchGetInfoScRsp._map_funcInfoMap_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BD6B RID: 48491 RVA: 0x001FEC94 File Offset: 0x001FCE94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueWorkbenchGetInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.funcInfoMap_.MergeFrom(other.funcInfoMap_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BD6C RID: 48492 RVA: 0x001FECE1 File Offset: 0x001FCEE1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BD6D RID: 48493 RVA: 0x001FECEC File Offset: 0x001FCEEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 58U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.funcInfoMap_.AddEntriesFrom(ref input, RogueWorkbenchGetInfoScRsp._map_funcInfoMap_codec);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004C3A RID: 19514
		private static readonly MessageParser<RogueWorkbenchGetInfoScRsp> _parser = new MessageParser<RogueWorkbenchGetInfoScRsp>(() => new RogueWorkbenchGetInfoScRsp());

		// Token: 0x04004C3B RID: 19515
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004C3C RID: 19516
		public const int FuncInfoMapFieldNumber = 7;

		// Token: 0x04004C3D RID: 19517
		private static readonly MapField<uint, WorkbenchFuncInfo>.Codec _map_funcInfoMap_codec = new MapField<uint, WorkbenchFuncInfo>.Codec(FieldCodec.ForUInt32(8U, 0U), FieldCodec.ForMessage<WorkbenchFuncInfo>(18U, WorkbenchFuncInfo.Parser), 58U);

		// Token: 0x04004C3E RID: 19518
		private readonly MapField<uint, WorkbenchFuncInfo> funcInfoMap_ = new MapField<uint, WorkbenchFuncInfo>();

		// Token: 0x04004C3F RID: 19519
		public const int RetcodeFieldNumber = 3;

		// Token: 0x04004C40 RID: 19520
		private uint retcode_;
	}
}
